flutter datetime add year

86

var date = DateTime.now();
var newDate = DateTime(date.year, date.month - 1, date.day);

Comments

Submit
0 Comments